package com.alks.function.data.dto.pcfactoryquery;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class PcMtlByLotDetailDto {
    @ApiModelProperty(value = "指令")
    private String lotNo;

    @ApiModelProperty(value = "型体")
    private String style;

    @ApiModelProperty(value = "材料颜色")
    private String mtlColor;

    @ApiModelProperty(value = "材料名")
    private String mtlName;

    @ApiModelProperty(value = "材料规格")
    private String mtlSpec;

    @ApiModelProperty(value = "材料单位")
    private String mtlUnit;

    @ApiModelProperty(value = "裁次")
    private String cutSeq;

    @ApiModelProperty(value = "厂商")
    private String vendorName;

    @DateTimeFormat("yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "采购交期")
    private LocalDateTime inDate;

    @NumberFormat
    @ApiModelProperty(value = "用量")
    private BigDecimal ttlUsage;

    @NumberFormat
    @ApiModelProperty(value = "订购量")
    private BigDecimal purQty;

    @NumberFormat
    @ApiModelProperty(value = "入库量")
    private BigDecimal recQty;

    @NumberFormat
    @ApiModelProperty(value = "欠数")
    private BigDecimal shortQty;

    @ApiModelProperty(value = "尾数处理")
    private String fullType;

    @ApiModelProperty(value = "通用")
    private String remark;

    @ApiModelProperty(value = "材料ID")
    private String mtlNo;

    @NumberFormat
    @ApiModelProperty(value = "订单数")
    private BigDecimal orderQty;

    @DateTimeFormat("yyyy/MM/dd")
    @ApiModelProperty(value = "订单数")
    private LocalDateTime orderDate;

}
